﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Consume.aspx.cs" Inherits="Jy123.Web.Manage.Consume" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>管理组件维护</title>
    <link href="css/custom/jquery.ui.css" rel="stylesheet" type="text/css" />
    <link href="css/main.css" rel="stylesheet" type="text/css" />

    <script src="js/jquery.js" type="text/javascript"></script>

    <script src="js/jquery.ui.js" type="text/javascript"></script>

    <script src="js/main.js" type="text/javascript"></script>

</head>
<body>
    <h4>
        <a href="#"><span>组件耐久度管理</span></a></h4>
    <form id="manageJTypeForm" runat="server">
    <div class="register">        
        <h5>
            组件耐久峰值
        </h5>
        <ul>
            <li>
                <asp:TextBox ID="peakValueTextBox" runat="server" MaxLength="20" CssClass="text"></asp:TextBox>
            </li>
            <li>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" CssClass="warning" runat="server"
                    ControlToValidate="peakValueTextBox" ErrorMessage="请填写组件耐久峰值" Display="Dynamic"
                    ForeColor=""></asp:RequiredFieldValidator>
                <asp:RangeValidator ID="RangeValidator1" CssClass="warning" runat="server" ControlToValidate="peakValueTextBox"
                    ErrorMessage="请填写1－100之间的整数" Type="Integer" MinimumValue="1" MaximumValue="100"></asp:RangeValidator>
            </li>
        </ul>
        <h5>
            使用消耗耐久
        </h5>
        <ul>
            <li>
                <asp:TextBox ID="raceTextBox" runat="server" MaxLength="20" CssClass="text"></asp:TextBox>
            </li>
            <li>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" CssClass="warning" runat="server"
                    ControlToValidate="raceTextBox" ErrorMessage="请填写道具类型名称" Display="Dynamic" ForeColor=""></asp:RequiredFieldValidator>
                <asp:RangeValidator ID="RangeValidator2" CssClass="warning" runat="server" ControlToValidate="raceTextBox"
                    ErrorMessage="请填写1－100之间的整数" Type="Integer" MinimumValue="1" MaximumValue="100"></asp:RangeValidator>
            </li>
        </ul>
        <h5>
            出租消耗耐久
        </h5>
        <ul>
            <li>
                <asp:TextBox ID="rentTextBox" runat="server" MaxLength="20" CssClass="text"></asp:TextBox>
            </li>
            <li>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" CssClass="warning" runat="server"
                    ControlToValidate="rentTextBox" ErrorMessage="请填写出租消耗耐久" Display="Dynamic" ForeColor=""></asp:RequiredFieldValidator>
                <asp:RangeValidator ID="RangeValidator3" CssClass="warning" runat="server" ControlToValidate="rentTextBox"
                    ErrorMessage="请填写1－100之间的整数" Type="Integer" MinimumValue="1" MaximumValue="100"></asp:RangeValidator>
            </li>
        </ul>        
        <h5>
            组件类型
        </h5>
        <ul>
            <li>
                <asp:DropDownList ID="JTypeDropDown" runat="server">
                </asp:DropDownList>
            </li>
            <li>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" CssClass="warning" runat="server"
                    ControlToValidate="JTypeDropDown" ErrorMessage="请选择组件类型" Display="Dynamic" ForeColor=""
                    InitialValue="-1"></asp:RequiredFieldValidator>
            </li>
        </ul>
        <ul class="bb">
            <li>
                <asp:HiddenField ID="actionTypeHidden" runat="server" Value="Add" />
                <asp:HiddenField ID="idHidden" runat="server" />
                <asp:Button ID="SaveButton" runat="server" CssClass="button" Text="保存" OnClick="Save" />
            </li>
        </ul>
    </div>
    <asp:Repeater ID="consumeRepeater" runat="server" Visible="false" OnItemDataBound="Repeater_DataBound"
        OnItemCommand="Repeater_Command">
        <HeaderTemplate>
            <table class="tblist">
                <tr>                    
                    <th>
                        组件耐久峰值
                    </th>
                    <th>
                        使用消耗耐久
                    </th>
                    <th>
                        出租消耗耐久
                    </th>                    
                    <th>
                        组件类型
                    </th>
                    <th>
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>                
                <td>
                <asp:HiddenField ID="idHidden" runat="server" />
                    <asp:Label ID="peakValueLabel" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="raceLabel" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="rentLabel" runat="server"></asp:Label>
                </td>                
                <td>
                    <asp:Label ID="JTypeLabel" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:LinkButton ID="EditButton" runat="server" CssClass="btnsty" CausesValidation="false"
                        CommandName="Edit" Text="修改" />
                    <asp:LinkButton ID="DeleteButton" runat="server" CssClass="btnsty cred" CausesValidation="false"
                        CommandName="Delete" Text="删除" OnClientClick="return confirm('确定删除？')" />
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    </form>
</body>
</html>
